#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "kalendarz.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
   }

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_wprowadz_clicked()
{
    QPair<QString, int> pair = data.dzien(QString(ui->dzien->text()).toInt());
    ui->data->setText(QString("%1 %2").arg(pair.second).arg(pair.first));
}

